package com.ruibang.glass.quality.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruibang.glass.quality.domain.req.ArchiveDefectReq;
import com.ruibang.glass.quality.domain.req.EverydayArchiveDefectReq;
import com.ruibang.glass.quality.domain.resp.ReinvestmentInfo;
import com.ruibang.glass.quality.entity.EverydayArchiveDefect;
import com.teaming.cloud.framework2.common.pojo.PageRequest;
import com.teaming.cloud.framework2.common.pojo.PageResult;

import java.util.List;

/**
 * <p>
 * 每日归档缺陷统计信息 服务类
 * </p>
 *
 * @author wujie
 * @since 2023-12-13
 */
public interface EverydayArchiveDefectService extends IService<EverydayArchiveDefect> {

    List<ReinvestmentInfo> getDayReinvestmentNum(ArchiveDefectReq archiveDefectReq);

    void deleteByParam(ArchiveDefectReq archiveDefectReq);

    /***
     * 查询每日归档数据列表
     * @param everydayArchiveDefectReq
     * @return
     */
    List<EverydayArchiveDefect> queryEverydayArchiveDefects(EverydayArchiveDefectReq everydayArchiveDefectReq);

    /***
     * 分页查询每日归档数据
     * @param pageRequest
     * @return
     */
    PageResult<EverydayArchiveDefect> queryPage(PageRequest<EverydayArchiveDefectReq> pageRequest);


    List<EverydayArchiveDefect> queryEveryDayByTime(ArchiveDefectReq archiveDefectReq);
}
